<?php $now_title = "新闻资讯"; require_once("head.php");?>
    <link rel="stylesheet" href="hg/css/info.css">
    <link rel="stylesheet" href="hg/css/global.css">
    <style type="text/css">
        body {
            background: url(hg/img/bj.jpg);
        }

    </style>
        <div class="container " style="overflow: hidden;">
        <div style="border-bottom: 3px solid #3487E6; margin-top: 3%; padding-bottom: 2%; color: #262626">
            
            <span class="">

                <a href="/">网站首页</a>
                &gt;
                <a href="">新闻资讯</a>
               
             </span>
        </div>

    </div>
<div style="clear: both"></div>
    <div class="wrapper">

        <!-- 内容 -->
        <div class="container">
            <div class="grid">


                <div class="list cnt-grid">
                    <?php
                    $sql = "SELECT * FROM `#@__infolist` WHERE classid=4  AND delstate='' AND checkinfo=true ORDER BY orderid DESC";
                    $dopage->GetPage($sql,10);
                    while($row = $dosql->GetArray())
                    {
                        $url = "/newsshow.php?id=".$row['id'];
                        $img = is_null($row['picurl'])?$row['picurl']:"/hg/img/defaultnew.png";
                        $title = $row['title'];
                        ?>
                    <div class="info-item">
<!--                        <a href="--><?php //echo $url ?><!--" class="info-img">-->
<!--                            <img src="--><?php //echo $img ?><!--" alt="--><?php //echo $title ?><!--">-->
<!--                        </a>-->
                        <div class="info-r">
                            <a href="<?php echo $url;?>"  class="info-title"><?php echo $title;?></a>
                            <div class="info-cnt"><?php echo $row['description'];?></div>
                            <div class="info-time">
                                <i class="i-clock"></i>
                                <div class="info-time-txt" style="color: #3487E6"><?php echo date('Y-m-d ',$row['posttime']);?></div>

                            <div class="info-link" style="justify-content: right; width: 85%">
                            <a href="<?php echo $url?>" style=" padding:5px 10px; border-radius: 20px; color: #3487E6; border: 1px solid #3487E6;">
                               查看详情
                            </a>
                        </div>
                            </div>
                        </div>
                        
                    </div>
                    <?php }
                    echo  $dopage->GetList();
                    ?>
                </div>

            </div>
        </div>





        <div class="global-tip-wrap J-success-tip">
            <div class="global-tip-cnt success-tip">
                <i class="hc-icon icon-delete2"></i>
                <div class="txt">success</div>
            </div>
        </div>
        <div class="global-tip-wrap J-error-tip">
            <div class="global-tip-cnt error-tip">
                <i class="hc-icon icon-info2"></i>
                <div class="txt">error</div>
            </div>
        </div>


    </div>



<?php require_once("footer.php");?>